<?php
class Answer_Service_Group extends Phpfox_Service {
    function __construct()
    {
        $this->_sTable = Phpfox::getT('user_group');
    }

    /**
     * get all group is not special
     * @return mixed
     */
    public function getAllGroup() {
        $aGroups = $this->database()
            ->select('*')
            ->from($this->_sTable)
            ->where('is_special = 0')
            ->order('user_group_id')
            ->execute('getRows');
        return $aGroups;
    }
}